/**
 * Created by Administrator on 2017/4/19.
 */

//订单详情
function details(orderNum, urls) {
    $.ajax({
        type: "POST",
        url: urls,
        dataType: "JSON",
        data: "orderNum=" + orderNum,
        success: function (msg) {
            document.getElementById("goodsCode").value = msg.orderNum;
            document.getElementById("totalMoney").value = msg.orderPrice;
            document.getElementById("goodsNum").value = msg.orderCount;
            document.getElementById("account").value = msg.account;
            document.getElementById("status").value = msg.orderStatus;
            document.getElementById("time").value = msg.orderTime;
            document.getElementById("system").value = msg.orderSource;
            document.getElementById("isBalance").value = msg.isSettlement == 1 ? '结算' : '未结算';
            document.getElementById("BalanceTime").value = msg.settlementTime;
            document.getElementById("BalanceTimePoint").value = msg.settlementTimePoint == 0 ? "及时结算" : msg.settlementTimePoint;
            document.getElementById("BonusCommission").value = msg.commission;
            document.getElementById("People").value = msg.name;
            document.getElementById("phone").value = msg.phone;
            var address = msg.province + msg.city + msg.area + msg.address;
            document.getElementById("address").value = address;
            document.getElementById("remarks").value = msg.remark;
            document.getElementById("photo").src = msg.image;
            document.getElementById("prompt").style.display = "block";
        }
    });
}